import axios from "axios";
import { API_CONFIG } from "../config/settings";

const apiClient = axios.create({
  baseURL: API_CONFIG.baseURL,
  timeout: 10000,
});

export const fetchApproveData = (token) => {
  return apiClient.get(`${API_CONFIG.endpoints.getApprove}?token=${token}`);
};

export const submitApproval = (token, status) => {
  return apiClient.post(
    `${API_CONFIG.endpoints.postApprove}?token=${token}`,
    { status }
  );
};
